﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="LiquidComposition.aspx.cs" Inherits="Admin_Liquid" Title="Admin ~ Liquidcomposition" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                               
                                                
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td align="left" class ="adminHeading ">LIQUID COMPOSITION </td>
                                                <td align="left"><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server" Width="482px"></asp:Label></td>
                                                <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label> </td>                                        
                                             </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                               <tr id="trLiquidCompTextboxes" runat="server">
                                <td>
                                    <table >
                                          <tr class="altanateAshBkg" id="tr1" runat="server" visible="false" >
                                    <td class='label' style="width: 120px">LiquidCompId</td>
                                    <td><asp:TextBox ID="txtLiquidComposId" runat="server" cssclass='textBox' Width='150px' 
                                            MaxLength="50"></asp:TextBox></td>
                                </tr> 
                                                              
                                <tr>
                                    <td colspan="2">
                                        <table>
                                           
                                          <tr class="ashBkg ">
                                            <td class='label'>Aqueous [wt%]&nbsp; <asp:TextBox ID="txtAqueous" runat="server" 
                                                    cssclass='textBox' Width='65px' MaxLength="100"></asp:TextBox> </td>
                                            <td class='label'>Water [wt%]&nbsp; &nbsp;<asp:TextBox ID="txtWater" runat="server" 
                                                    cssclass='textBox' Width='65px' MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>Oil [wt%]&nbsp; 
                                                <asp:TextBox ID="txtOil" runat="server" 
                                                   cssclass='textBox' Width='65px' MaxLength="10"></asp:TextBox> </td>
                                          
                                         </tr>
                                                                                                          
                                        </table>
                                    </td>
                                </tr> 
                                
                                <tr>
                                    <td class="altanateAshBkg ">
                                    
                                        <asp:ImageButton ID="ImageButton1" runat="server" 
                                            ImageUrl="~/Images/btnSave.jpg" onclick="ImageButton1_Click" />
                                    
                                    </td>
                                </tr>
                                    </table>
                                </td>
                           </tr> 
                              
                               <tr>
                                    <td colspan="2">
                                        <table >
                                            <tr>
                                              <td><asp:Button ID="Button1" runat="server" Text="Oil Chemical Properties" 
                                                    CssClass="button" onclick="Button2_Click" Height="25px" /> </td>
                                            <td><asp:Button ID="Button3" runat="server" 
                                                    Text="Oil Physical Properties" CssClass="button" 
                                                    onclick="btnOilPhysicalProperties_Click" Height="25px" /> </td>
                                            <td> 
                                                <asp:Button ID="Button4" runat="server" Text="Oil Components" 
                                                    CssClass="button" onclick="btnOilComponents_Click" Height="25px" 
                                                    Width="100px" /></td>
                                                    <td>
                                                    <asp:Button ID="btnPrevious" runat="server" Text ="Previous Records" 
                                                            CssClass="button" onclick="btnPrevious_Click" />
                                                    </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                                    
                               <tr id="trDgLiquidComposition" runat="server" >
                                    <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgLiquidComposistion" 
                                            runat="server" 
                                            onpageindexchanging="dgLiquidComposistion_PageIndexChanging" 
                                            onrowediting="dgLiquidComposistion_RowEditing">
                                            <Columns>      
                                            <%--<asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                <asp:BoundField  DataField="aqueous" HeaderText="Aqueous"/>
                                                <asp:BoundField  DataField="oil" HeaderText="Oil" />  
                                                 <asp:BoundField  DataField="water" HeaderText="Water" />                                                                                              
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                             </tr>  
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 
 
</asp:Content>

